import { sequelize } from './sequelize.js'


export const sync = async function () {
    try {
        await sequelize.authenticate();
        console.log('数据库连接正常，Over.');
    } catch (error) {
        console.error('数据库连接失败:', error);
    }
    await sequelize.sync({force:true});

    console.log('数据库初始化完成');

}





